



echo "打包开始"
# 打包前端
cd /d/nyy_work/fe-work/

tar zcvf big-devops_front_`date "+%Y-%m-%d"`.tar.gz  --exclude=big-devops/node_modules --exclude=big-devops/.git big-devops
mv big-devops_front_`date "+%Y-%m-%d"`.tar.gz /d/nyy_work/new_code/


# 打包后端
cd /d/nyy_work/go_path/src/
rm -f *.log
tar zcvf big-devops_backend_`date "+%Y-%m-%d"`.tar.gz  --exclude=bigdevops/bin  --exclude=bigdevops/.git bigdevops
mv big-devops_backend_`date "+%Y-%m-%d"`.tar.gz  /d/nyy_work/new_code/


# 打包文档
cd /d/nyy_work/课程文档/总文档
tar zcvf doc_`date "+%Y-%m-%d"`.tar.gz  A-大运维平台课程
mv doc_`date "+%Y-%m-%d"`.tar.gz /d/nyy_work/new_code/

# 最后打包
cd /d/nyy_work/new_code/
tar zcvf 大运维平台前后端代码和文档_`date "+%Y-%m-%d"`.tar.gz  *`date "+%Y-%m-%d"`*

echo "打包结束"
du -sh *


